<template>
    <div class="alert" v-text="username"></div>
</template>

<script>
export default {
    props: ['username'],
    data() {
        return {
            message: 'I am an alert.',
        };
    }
};
</script>

<style>
.alert {
    background: red;
}
</style>